package com.lhn.feign;

import com.lhn.entity.Admin;
import com.lhn.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lhn
 * @date 2024-10-13 13:26
 */

@FeignClient(name = "account-provider")
public interface AccountFeign {

    @PostMapping("account/login/user")
    User login(@RequestBody User user);

    @PostMapping("account/login/admin")
    Admin login(@RequestBody Admin admin);
}
